<template>
  <div class="box">
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="admin_id" label="管理员编号">   </el-table-column>
             
      <el-table-column prop="name" label="管理员姓名">     </el-table-column>
             
      <el-table-column prop="name" label="职位"> </el-table-column>       
    </el-table>
  </div>
</template>

<script>
// import { mapState } from "@/store";
export default {
  computed: {
    // ...mapState(["userIifo"]),
  },
  methods: {},
  mounted() {
    let a = this.$store.dispatch("getuserInfoActions");
    this.axios.get("/my/admin").then((res) => {
      this.tableData = res.data.results;
    });
  },
  methods: {},
  data() {
    return {
      tableData: [],
    };
  },
};
</script>

<style lang="scss" scoped>
.box {
  width: 100%;
}
.el-table .warning-row {
  background: oldlace;
}

.el-table .success-row {
  background: #f0f9eb;
}
</style>